<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="com.shreecon.lms.common.EmployeeDetailsView"%>
<%@page import="com.shreecon.lms.interfaces.IMessageConstant"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Home Page</title>
</head>
<body>

<table align="center">
	<tr>
		<td align="left"><img src="images\LOGO1.png" align="left"></td>
	</tr>
</table>
<% EmployeeDetailsView empView  = (EmployeeDetailsView)request.getAttribute("employeeDetailsView");%>
<table align="right">
	<thead>
		<tr>
			<th>Welcome <%=empView.getName()%></th>
		</tr>
	</thead>
</table>
<table>
	<tr>
		<td>
			<a href="/ShreeLMS/LeaveServlet?empID=<%=empView.getId()%>">Apply Leave</a>
		</td>
	</tr>
	<tr>
		<td>
			<a>Leave Report</a>
		</td>
	</tr>
	<%if( empView.getEmpRole() !=null && empView.getEmpRole().equals(IMessageConstant.MANAGER_ROLE) ){ %>
		<tr>
			<td>
				<a>Manage Employee</a>
			</td>	
		</tr>
	<%} %>
</table>
</form>
</body>
